<?php

include 'DBLibrary/config.php';
include 'DBLibrary/openDB.php';

mysql_select_db($dbname);

$rowedit = mysql_fetch_array(mysql_query("SELECT DATE_FORMAT(DATE_ADD(NOW(), INTERVAL 8 HOUR), '%y') as yyyy"));

$queryregnum = "select * from user where accounttype='registrar'";
$regtotal = mysql_query($queryregnum);
$totalreg = mysql_num_rows($regtotal);
$idno = 'RGTR' . $rowedit['yyyy'] . str_pad($totalreg + 1, 2, '0', STR_PAD_LEFT);
$try = "Kelvin";

echo str_pad(mt_rand(0, 99), 2, '0', STR_PAD_LEFT);
?>